package com.hlhj.carview.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import com.hlhj.carview.Iview.MyAdvView
import com.hlhj.carview.bean.AdvListBean
import com.hlhj.carview.module.MyAdvModule

/**
 * Created by Never Fear   on 2018\12\24 0024.
Never More....
 */
class MyAdvPresenter :BasePresenter<MyAdvModule,MyAdvView>(), MyAdvView {
    override fun setAdvList(advListBean: AdvListBean) {
        view?.setAdvList(advListBean)
    }

    fun getAdv(page:String?,c:Context){
        module?.getAdvs(page, c)
    }

    override fun createModule() {
        module=MyAdvModule()
        module.lis=this
    }
}